package vma.nicici.chat.communication;

import java.io.IOException;
import java.net.URISyntaxException;
import java.util.List;

import org.apache.http.NameValuePair;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.HttpRequestBase;
import org.apache.http.impl.client.DefaultHttpClient;

public class GetHttpRequest extends HttpRequest{
	public GetHttpRequest(String url, List<? extends NameValuePair> parameters) {
		super(url, parameters, new HttpGet());
	}
	
	public String getStringResponse() throws IOException, URISyntaxException {
		return send( decodeUrlWithParameters() );
	}

	@Override
	public void clientPreparation(HttpRequestBase type) {
	}

	
}
